﻿package com.bizmlib.utils
{
	
	public function addCharsToString(string:String = "", char:String = " ", finalLength:Number = 0, addAtTheEnd:Boolean = false):String
	{
		while(string.length < finalLength)
		{
			string = addAtTheEnd ? (string + char) : (char + string);
		}
		
		return string;
	}
}